def show_info_window(listbox,task_dict):
    import tkinter as tk
    
    window = tk.Tk()
    window.geometry('600x400')
    window.title('show the detail information')
    
    details_label = tk.Label(window,text='')
    details_label.pack()
    
        # 获取选中的任务
    selected_index = listbox.curselection()
    if not selected_index:
        return  # 如果未选择任务，则返回

    # 从列表框中获取任务名
    task_text = listbox.get(selected_index)
    task_name = task_text.split(" ")[0]  # 任务名在文本的第一部分

    # 获取任务详细信息
    if task_name in task_dict:
        task = task_dict[task_name]
        details_text = (
            f"Task Name: {task['task_name']}\n"
            f"Priority: {task['task_priority']}\n"
            f"Creation Date: {task['task_creation_date']}\n"
            f"Due Date: {task['task_due_date']}\n"
            f"Description: {task['task_description']}\n"
            f"Status: {task['task_status']}"
        )
        # 更新 Label 文本
        details_label.config(text=details_text)